package circle;

/**
 * @author 陈艺博
 * @date 2021-02-25 13:20
 * @description 循环双端队列测试
 **/
public class CircleDequeTest {
    public static void main(String[] args) {
        CircleDeque<Integer> queue = new CircleDeque<>();
        for (int i = 0; i < 10; i++) {
            queue.enQueueFront(i +1);
            queue.enQueueRear(i + 100);
        }
        for (int i = 0; i < 3; i++) {
            queue.deQueueFront();
            queue.deQueueRear();
        }
        queue.enQueueFront(11);
        queue.enQueueFront(22);
        System.out.println(queue);
        while (!queue.isEmpty()){
            System.out.println(queue.deQueueFront());
        }
    }
}
